/**
 * 
 */
package com.changer.common.service;

import java.io.File;

/**
 * @author Jiwei.guo
 *
 */
public interface MailService {
	
	/**
	 * 发送邮件
	 * @param alias 发信人别名
	 * @param tos
	 * @param subject
	 * @param content
	 * @throws Exception
	 */
	public void send(String alias, String[] tos, String subject, String content) throws Exception;
	
	/**
	 * 发送邮件
	 * @param alias 发信人别名
	 * @param tos
	 * @param subject
	 * @param content
	 * @param attachments
	 * @throws Exception
	 */
	public void send(String alias, String[] tos, String subject, String content, File[] attachments) throws Exception;
}
